package com.pc.mapper;

import com.pc.enrty.ShoppingAddress;

import java.util.ArrayList;

public interface ShoppingAddressMapper {
    /**
     * 根据uid查询收货地址信息
     * @return ShoppingAddress
     */
    ArrayList<ShoppingAddress> selectByUid(ShoppingAddress shoppingAddress);

    /**
     * 插入收货地址
     * @param shoppingAddress ***需要插入uid
     * @return
     */
    int insertShoppingAddress(ShoppingAddress shoppingAddress);

    /**
     * 根据uid修改收货地址
     * @param shoppingAddress
     * @return
     */
    int updateShoppingAddress(ShoppingAddress shoppingAddress);

    ArrayList<ShoppingAddress> selectId(ShoppingAddress shoppingAddress);


}
